HomeHelpSearchLoginRegister

Welcome, Guest. Please login or register.
Did you miss your activation email?
October 06, 2007, 11:42:16 PM

Login with username, password and session length
Search

News
PSP Lua CodeBase now available! Add your own examples.

Stats
9,381 Posts in 1,066 Topics by 261 Members
Latest Member: TheEgo88
+  forums.evilmana.com
|-+  PSP Forums
| |-+  PSP Development
| | |-+  Lua Help
| | | |-+  system.quit() or os.exit()
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Topic: system.quit() or os.exit()  (Read 148 times)
zechZ
EvilMana Noob
*

Karma: 0
Offline Offline

Posts: 49


View Profile
« on: July 16, 2007, 06:57:33 AM »

i tried these two code for luaPlayer for windows...
the "Syatem.quit()" didn't work..

os.exit() worked in LuaPlayer for windows.
but when i tried it in my PSP it hangs..

Logged
Buddy4point0
EvilMana Regular User
*

Karma: 3
Offline Offline

Posts: 165



View Profile WWW
« Reply #1 on: July 17, 2007, 01:33:24 AM »

im using luaplayer .20 no mods. and os.exit() freezes, and System.quit() gives me an error, and System.Quit() gives me the same error. could someone help with this? i really need the proper function for .20 and i cant find it.
Logged

veiw my coding projects here
yaustar
Administrator
EvilMana God
*

Karma: 40
Offline Offline

Posts: 1,103



View Profile
« Reply #2 on: July 17, 2007, 02:35:38 AM »

Just break out of the script. You shouldn't ever need to use X.exitEtc(). i.e.
Code:
g_QuitFlag = false;

while not g_QuitFlag do
-- some code
-- more code
if play quits game then
g_QuitFlag = true
end
end
Logged

zechZ
EvilMana Noob
*

Karma: 0
Offline Offline

Posts: 49


View Profile
« Reply #3 on: July 22, 2007, 08:25:15 AM »

thx for the great help...always!
Logged
LMelior
EvilMana Toddler
*

Karma: 54
Offline Offline

Posts: 98


View Profile
« Reply #4 on: July 22, 2007, 07:50:40 PM »

Well, those special functions were kind of useful when you only accessed your game through Lowser.  I always shared this information back when I experimented with it, but nobody else seemed to have believed me, or at least, nobody passed it on when this question popped up (which it did and does often):

The command os.exit() only worked with earlier versions of Luaplayer.  I know for a fact it worked with 0.16, and that it did NOT with 0.20.  I believe I tested it with 0.19 and it did not work on that version, but I don't remember for sure.

If you want to use 0.20 (which is understandable since it uses a more updated version of Lua), then I believe Cools' mods of LuaPlayer include the function System.Quit().  I know the function was in LuaPlayer 0.17dk2, but I'm pretty sure Cools integrated it into his (or made his own).
Logged
Buddy4point0
EvilMana Regular User
*

Karma: 3
Offline Offline

Posts: 165



View Profile WWW
« Reply #5 on: July 26, 2007, 05:59:37 PM »

Well, those special functions were kind of useful when you only accessed your game through Lowser.  I always shared this information back when I experimented with it, but nobody else seemed to have believed me, or at least, nobody passed it on when this question popped up (which it did and does often):

The command os.exit() only worked with earlier versions of Luaplayer.  I know for a fact it worked with 0.16, and that it did NOT with 0.20.  I believe I tested it with 0.19 and it did not work on that version, but I don't remember for sure.

If you want to use 0.20 (which is understandable since it uses a more updated version of Lua), then I believe Cools' mods of LuaPlayer include the function System.Quit().  I know the function was in LuaPlayer 0.17dk2, but I'm pretty sure Cools integrated it into his (or made his own).

i have used and still do use System.Quit without lowser.
Logged

veiw my coding projects here
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Amber design by Bloc | XHTML | CSS